<?php
class Merchant_Service_ShipType
{
	public static function getStClassCode() {
        return array(
            'CRE' =>'快递',
            'CRP' =>'挂号',
            'CPS' =>'平邮',
        );
    }

    public static function getStatusList() {
        return array(
            '0' =>'不可用',
            '1' =>'可用',
        );
    }

    public static function add($row){
        $shipTypeObj = new Merchant_Model_ShipType();
        return $shipTypeObj->add($row);
	}

	public static function update($row,$value,$field='st_id'){
        $shipTypeObj = new Merchant_Model_ShipType();
        return $shipTypeObj->update($row,$value,$field);
	}


	public static function delete($value,$field='st_id'){
        $shipTypeObj = new Merchant_Model_ShipType();
        return $shipTypeObj->delete($value,$field);

	}
	public static function getAll(){
		$shipTypeObj = new Merchant_Model_ShipType();
		return $shipTypeObj->getAll();
	}

	public static function getByValue($value,$field='st_id'){
        $shipTypeObj = new Merchant_Model_ShipType();
        return $shipTypeObj->getByValue($value,$field);
	}
	
	public static function getAllByValue($value,$field='st_id'){
        $shipTypeObj = new Merchant_Model_ShipType();
        return $shipTypeObj->getAllByValue($value,$field);
	}

    public static function getByCondition($condition,$type='*',$orderby="",$page=0,$pageSize=0){
        $shipTypeObj = new Merchant_Model_ShipType();
        return $shipTypeObj->getByCondition($condition,$type,$orderby,$page,$pageSize);
	}

    



}